package com.gongda.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gongda.gulimall.common.utils.PageUtils;
import com.gongda.gulimall.product.entity.BrandEntity;
import com.gongda.gulimall.product.entity.CategoryEntity;
import com.gongda.gulimall.product.vo.AttrGroupWithAttrsVo;
import com.gongda.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author pxy
 * @date 2022-02-10 14:05:58
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    List<BrandEntity> getBrandsByCatId(List<Long> asList);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(List<Long> asList);

    void removeMenuByIds(List<Long> asList);

    Long[] findCateLogPath(Long catelogId);

    void updateCasecade(CategoryEntity category);

    Long[] findCatelogPath(Long catelogId);

    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

